package org.example.platform.design.fangwenqi;


/**
 * 访问者模式
 */
public class Testt {


    public static void main(String[] args) {
        Object object = new Object();
        object.add(new Nv("测试2","成功"));
        object.add(new Nan("测试","成功"));

        // 成功反应
        Success success = new Success();
        object.show(success);


        // 失败反应
        Failed failed = new Failed();
        object.show(failed);

    }
}
